<?php 
$baseUrl = Yii::app()->theme->baseUrl;
$cs = Yii::app()->getClientScript();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

	
	<?php 
	//Loading Bootstrap
	$cs->registerCssFile($baseUrl.'/bootstrap/css/bootstrap.css');
	//Loading Flat UI
	$cs->registerCssFile($baseUrl.'/css/flat-ui.css');
	
	$cs->registerCssFile(Yii::app()->baseUrl.'/css/navigate.css');
	
	$cs->registerScriptFile($baseUrl.'/js/jquery-1.8.3.min.js');
    $cs->registerScriptFile($baseUrl.'/js/jquery-ui-1.10.3.custom.min.js');
    $cs->registerScriptFile($baseUrl.'/js/jquery.ui.touch-punch.min.js');
    $cs->registerScriptFile($baseUrl.'/js/bootstrap.min.js');
    $cs->registerScriptFile($baseUrl.'/js/bootstrap-select.js');
    $cs->registerScriptFile($baseUrl.'/js/bootstrap-switch.js');
    $cs->registerScriptFile($baseUrl.'/js/flatui-checkbox.js');
    $cs->registerScriptFile($baseUrl.'/js/flatui-radio.js');
    $cs->registerScriptFile($baseUrl.'/js/jquery.tagsinput.js');
    $cs->registerScriptFile($baseUrl.'/js/jquery.placeholder.js');
	
	?>

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
    
</head>

<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->

	<nav class="navbar navbar-inverse navbar-embossed" role="navigation">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-01">
                <span class="sr-only">Toggle navigation</span>
              </button>
            </div>
            <div class="collapse navbar-collapse" id="navbar-collapse-01">
              <ul class="nav navbar-nav navbar-left">           
                <li><a href="<?php echo $this->createUrl('')?>">Home<span class="navbar-unread">1</span></a></li>
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Messages <b class="caret"></b></a>
                  <span class="dropdown-arrow"></span>
                  <ul class="dropdown-menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li class="divider"></li>
                    <li><a href="#">Separated link</a></li>
                  </ul>
                </li>
                <li><a href="<?php echo $this->createUrl('contact')?>">About Us</a></li>
               </ul>
            </div><!-- /.navbar-collapse -->
    </nav><!-- /navbar -->

	<?php echo $content; ?>



</div><!-- page -->

</body>
</html>
